You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxVecInt Class > TMtxVecInt Methods > ThreshAbsGT Method > TMtxVecInt.ThreshAbsGT Method ([In] int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxVecInt.ThreshAbsGT Method ([In] int)

Threshold top and bottom centered around zero.

Syntax
C#
Visual Basic
public TMtxVecInt ThreshAbsGT([In] int Value);

Perform threshold operation on all calling object values. The Value parameter is an upper bound for threshold operation. All values bigger than Value will be replaced with Value and all values smaller than -Value will be replaced with -Value. The comparison checks if abs(Values[i]) > Value.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TVecInt a; MtxVec.CreateIt(out a); try { a.SetIt(new int[] {2, -1, 3, 4}); a.ThreshAbsGT(2); // a = [2, -1, 2, 2] } finally { MtxVec.FreeIt(ref a); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!